package com.futures.investm.adapter;


import android.widget.ImageView;

import com.futures.investm.R;
import com.futures.investm.entity.MarketEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import tech.com.commoncore.manager.GlideManager;


public class MtMAdapter extends BaseQuickAdapter<MarketEntity,BaseViewHolder> {


    public MtMAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, MarketEntity item) {
        //币种
        helper.setText(R.id.tv_bizhong,item.getCoin_name_base());

        ImageView view = helper.getView(R.id.img);



        GlideManager.loadImg(item.getCoin_img_base(),view);

        //成交额
        helper.setText(R.id.tv_chengjiaoe,item.getCoin_gains_base()+"");
    }
}
